package org.bmind.datasword.config.impl.orient;

import org.bmind.datasword.config.dto.DDataset;
import org.bmind.datasword.config.dto.DChildDatasetContainer;
import org.bmind.datasword.config.dto.DParentDatasetContainer;
import org.bmind.datasword.config.impl.OrientConfig;

import com.orientechnologies.orient.core.db.object.ODatabaseObject;

public class OrientDataset  implements OrientBaseOp{
	
	public OrientDataset(ODatabaseObject orDb){
		classRegister(orDb);
	}
	
	@Override
	public void classRegister(ODatabaseObject orDb) {
		orDb.getEntityManager().registerEntityClass(DParentDatasetContainer.class);
		orDb.getEntityManager().registerEntityClass(DChildDatasetContainer.class);
		orDb.getEntityManager().registerEntityClass(DDataset.class);
	}
}
